<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

class Adverts extends Model
{
    protected $table = 'adverts';
	public $timestamps = false;

    public function getad($typid)
    {
        if (!empty($typid))
            {
                return Adverts::where('paths','=',$typid)->where('is_show','=','1')->orderBy('create_time','desc')->get()->toArray();
            }
    }
}
